import request from '@/utils/request_admin'

const baseURL = '/audit/company'

export default {
  getCompanyAuditList(page, size, data) {
    return request({
      url: `${baseURL}/list/${page}/${size}`,
      method: 'POST',
      data,
    })
  },
  getUserInfo(userId) {
    return request({
      url: `${baseURL}/userInfo`,
      method: 'GET',
      params: {
        userId,
      },
    })
  },
  auditSuccess(auditCompanyId, userNumber) {
    return request({
      url: `${baseURL}/auditSuccess`,
      method: 'GET',
      params: {
        auditCompanyId,
        userNumber,
      },
    })
  },
  auditError(auditCompanyId, userNumber, errorMessage) {
    return request({
      url: `${baseURL}/auditError`,
      method: 'GET',
      params: {
        auditCompanyId,
        userNumber,
        errorMessage,
      },
    })
  },
  getCompanyById(auditCompanyId) {
    return request({
      url: `${baseURL}/${auditCompanyId}`,
      method: 'GET',
    })
  },
}
